<template>
  <i class="ok-icon" :class="'ok-icon-'+name" :style="size?'font-size:'+size:''"></i>
</template>

<script type="es6">
export default {
  name: "Icon",
  props: {
    name: {
      type: String,
      default: 'my'
    },
    size: {
      type: String,
      default: ''
    }
  },
  mounted() {

  },
  methods: {}
}
</script>

<style lang="scss" scoped>
@import "fonts/iconfont.css";

.ok-icon {
  font-size: 24px;
}
</style>